<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

	<table>
			<tr>
				<td><label class="contentTitle" style="font-size: 14; color: blue;">分区号:↓</label></td>
				<td><label class="contentTitle" style="font-size: 14; color: blue;">分区名:↓</label></td>
				<td><label class="contentTitle" style="font-size: 14; color: blue;">目的地:↓</label></td>
				<td><label class="contentTitle" style="font-size: 14; color: blue;">未选中:↓</label></td>
				<td><label class="contentTitle" style="font-size: 14; color: blue;">删除:↓</label></td>
			</tr>
			
			<c:forEach items="${partitions}" var="partition">
				<tr target="sid_user" rel="1">
				<td width="110">
					<input name="partitionNumber" class="required" type="text" size="14" value="${partition.PPartitionNumber }" readonly="readonly"/>
					<c:forEach items="${repeatPartitionNumber}" var="rPNum">
						<c:if test="${partition.PPartitionNumber == rPNum}">
							<font color="red">已存在或重复</font>
						</c:if>
					</c:forEach>
				</td>
				<td width="110">
					<input name="partitionName" class="required" type="text" size="14" value="${partition.PPartitionName }"/>
					<c:forEach items="${repeatPartitionName}" var="rPName">
						<c:if test="${partition.PPartitionName == rPName}">
							<font color="red">已存在或重复</font>
						</c:if>
					</c:forEach>
				</td>
				<td width="210">
					<textarea name="clientCountryCodp" class="required" cols="25" rows="6"><c:forEach items="${partitionLines}" var="partitionLine"><c:if test="${partition.PPartitionNumber ==partitionLine.PPartitionNumber }">${partitionLine.clientCountryCode },</c:if></c:forEach></textarea>
				</td>
				<td width="210">
					<textarea readonly="readonly" cols="25" rows="6"><c:forEach items="${unls}" var="unl"><c:if test="${partition.PPartitionNumber ==unl.PPartitionNumber }">${unl.clientCountryCode },</c:if></c:forEach></textarea>
				</td>
				<!-- 
				<td width="">
					<a target="ajaxTodo" href="pricemanager/Channel/CityTree.jsp" class="btnEdit" rel="CityTree">目的地</a>
				</td>
				 -->
				<td width="100">
				<div class="buttonActive"><div class="buttonContent"><button onclick="delPBtn('${partition.PPartitionNumber }')" type="button">删除分区</button></div></div>
				</td>
			</tr>
			</c:forEach>
	</table>